Correct 32on64 handling of VCPUOP_register_runstate_memory_area. We
authorIan Campbell <ian.campbell@xensource.com>
Fri, 25 May 2007 14:28:52 +0000 (15:28 +0100)
committerIan Campbell <ian.campbell@xensource.com>
Fri, 25 May 2007 14:28:52 +0000 (15:28 +0100)
commitcf71bfc68ecd9430354cce668836537458fa44a0
tree2bb83146ce36d5244422c8127c9e83976fa01665
parentf91feaa0fde1c4da44c87cd8ea0baeeb1a20550e
Correct 32on64 handling of VCPUOP_register_runstate_memory_area.  We
were copying too many bytes from the guest so the test for
area.addr.h.c != area.addr.p was failing.

Added a WARN_ON to the kernel to catch this case. It would be a BUG_ON
but this would break the new kernel on older hypervisors and the only
real problem is that stolen time is not updated, which we can live
with.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
linux-2.6-xen-sparse/arch/i386/kernel/time-xen.c
linux-2.6-xen-sparse/arch/ia64/kernel/time.c
xen/arch/x86/x86_64/domain.c